package pingan.com.quarter_hour.acyivity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import pingan.com.quarter_hour.R;

public class WebViewActivity extends AppCompatActivity {

    @BindView(R.id.webview)
    WebView webview;
    Unbinder unbinder;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_web_view);

        unbinder=ButterKnife.bind(this);

        //WebView展示数据
        Intent intent = getIntent();
        String webviewUrl = intent.getStringExtra("webviewUrl");
        if(webviewUrl!=null){
            webview.loadUrl(webviewUrl);
        }

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        unbinder.unbind();
    }
}
